Optimal. Leaf size=54 \[ \frac{2 \sqrt{a \sec (c+d x)+a}}{a^2 d}+\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a \sec (c+d x)+a}}{\sqrt{a}}\right )}{a^{3/2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0749947, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.174, Rules used = {3880, 80, 63, 207} \[ \frac{2 \sqrt{a \sec (c+d x)+a}}{a^2 d}+\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a \sec (c+d x)+a}}{\sqrt{a}}\right )}{a^{3/2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3880
Rule 80
Rule 63
Rule 207
Rubi steps
\begin{align*} \int \frac{\tan ^3(c+d x)}{(a+a \sec (c+d x))^{3/2}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{-a+a x}{x \sqrt{a+a x}} \, dx,x,\sec (c+d x)\right )}{a^2 d}\\ &=\frac{2 \sqrt{a+a \sec (c+d x)}}{a^2 d}-\frac{\operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+a x}} \, dx,x,\sec (c+d x)\right )}{a d}\\ &=\frac{2 \sqrt{a+a \sec (c+d x)}}{a^2 d}-\frac{2 \operatorname{Subst}\left (\int \frac{1}{-1+\frac{x^2}{a}} \, dx,x,\sqrt{a+a \sec (c+d x)}\right )}{a^2 d}\\ &=\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+a \sec (c+d x)}}{\sqrt{a}}\right )}{a^{3/2} d}+\frac{2 \sqrt{a+a \sec (c+d x)}}{a^2 d}\\ \end{align*}
Mathematica [A] time = 0.069861, size = 56, normalized size = 1.04 \[ \frac{2 \left (\sec (c+d x)+\sqrt{\sec (c+d x)+1} \tanh ^{-1}\left (\sqrt{\sec (c+d x)+1}\right )+1\right )}{a d \sqrt{a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.147, size = 81, normalized size = 1.5 \begin{align*} -{\frac{1}{d{a}^{2}}\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}} \left ( \sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}\arctan \left ({\frac{\sqrt{2}}{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) -2 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83357, size = 493, normalized size = 9.13 \begin{align*} \left [\frac{\sqrt{a} \log \left (-8 \, a \cos \left (d x + c\right )^{2} - 4 \,{\left (2 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} - 8 \, a \cos \left (d x + c\right ) - a\right ) + 4 \, \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{2 \, a^{2} d}, -\frac{\sqrt{-a} \arctan \left (\frac{2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + a}\right ) - 2 \, \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}}{a^{2} d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan ^{3}{\left (c + d x \right )}}{\left (a \left (\sec{\left (c + d x \right )} + 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 10.1773, size = 134, normalized size = 2.48 \begin{align*} \frac{2 \,{\left (\frac{\arctan \left (\frac{\sqrt{2} \sqrt{-a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}}{2 \, \sqrt{-a}}\right )}{\sqrt{-a} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )} - \frac{\sqrt{2}}{\sqrt{-a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )}\right )}}{a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]